package com.abaaba.project2.mapper;

import com.abaaba.project2.bean.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderMapper {
    long countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<CountByDateTime> countByDate();


    CountByDateTimeAndAll countByDateTimeAndAll(Date time);

    List<CountByDateTime> countByDateOfOrderGoods();

    CountByDateTimeOfGoods countByDateTimeOfOrderGoods(Date time);

    void addComments(Integer orderId);

    void decComments(Integer orderId);
}